<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="keywords" content=""/>
	<title>{$title}</title>
	<link rel="stylesheet" type="text/css" href="css/base.css">
	<link rel="stylesheet" type="text/css" href="css/style.css">
	<script src="js/jquery.min.js"></script>
</head>
<body>
	<!--容器-->
	<div class="container">
		<!--内容-->
		<div class="content">
			<!--游戏记录-->
			<div class="activity_game_record">
				{if(@$record['data'])}
				<ul>					
					{foreach($record['data'] as $k=>$v)}
					<li>
						<div class="activity_game_detail">
							<div class="f_l activity_game_name">{$v['gamename']}游戏（消耗{$v['jifen']}个积分）</div>
							<div class="f_r activity_game_time">{code( echo date('Y.m.d',$v['time']))}</div>
							<div class="qfd"></div>
						</div>
						{if($v['zt'] == 0)}
						<div class="activity_game_state c_f04848">
							未中奖 
						</div>
						{else} 
						<div class="activity_game_state c_11b68b">
							中奖了，奖品是{$v['jiangpin']}(客服会尽快与您联系)
						</div>
						{/if}
						<div class="across_line_f1f1f1"></div>
					</li>
					{/foreach}
						<div id="more"></div>
						{if(@$record['count']>$pagesize)}
							<!--加载更多-->
							<div class="post_load_more" id="page_2">
								<button onclick="more({code(echo($page+1))})">加载更多</button>
							</div>
							<!--加载更多结束-->
						{/if}
				</ul>
				{else}
				<!--图片-->
				<div class="activity_no_pic">
					<img src="{$style}/images/activity_no.png" height="339" width="237" alt="">
				</div>
				<!--图片结束-->
				<!--文字-->
				<div class="activity_no_text">
					<p>您还没有玩过游戏</p>
					<p>快去玩游戏吧！</p>
				</div>
				<!--文字结束-->
				{/if}
			</div>
			<!--游戏记录结束-->
		</div>
		<!--内容结束-->
	</div>
	<!--容器结束-->
	<script>
	function more(page){//加载
       	var d = document.getElementById('more').innerHTML;
        $.post("/?act=activity&met=record_more&page="+page,{page:page},function(data){
        	//alert(data);
        	document.getElementById('more').innerHTML=d+data;
			 document.getElementById("page_"+page).style.display="none"; 
        });
    }
	</script>
</body>
</html>